package club.hicode.daydayup.hystric;

import com.netflix.hystrix.HystrixCommand;
import com.netflix.hystrix.HystrixCommandGroupKey;

/**
 * 测试Demo
 *
 * @author Liu Chunfu
 * @date 2018-07-16 下午4:59
 **/
//public class HelloWorldCommand extends HystrixCommand<String> {
//
//
//    protected HelloWorldCommand(HystrixCommandGroupKey group, int executionIsolationThreadTimeoutInMilliseconds) {
//        super(group, executionIsolationThreadTimeoutInMilliseconds);
//    }
//
//    @Override
//    protected String run() throws Exception {
//        Thread.sleep(4000);
//        return "hello: " + Thread.currentThread().getId();
//    }
//
//    @Override
//    protected String getFallback() {
//        return "fall-back";
//    }
//}
